package com.example.democourse.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PageConfig {

//    @Bean
//    PaginationInnerInterceptor paginationInnerInterceptor(){
//        return  new PaginationInnerInterceptor();
//    }
    @Bean
    PaginationInterceptor paginationInterceptor(){
        return  new PaginationInterceptor();
    }
}
